import common
import schedule
import time


def job():
    common.append_all_web_history()


schedule.every().monday.at('16:00').do(job)
schedule.every().tuesday.at('16:00').do(job)
schedule.every().wednesday.at('16:00').do(job)
schedule.every().thursday.at('16:00').do(job)
schedule.every().friday.at('16:00').do(job)

while True:
    schedule.run_pending()
    time.sleep(60)
